<div class="box white_bg" style="margin-top:10px">
<?
//die_a($this->viewParams['id']);
	if (!empty($this->viewParams['id'])) 
 :?>
<link href="/public/themes/hard/css/gallery2.css" type="text/css" rel="stylesheet">

	<div class="box box_margin">
          <div class="chitiet_box_title" style="width:302px;">&nbsp;&nbsp;&nbsp;<?=t(6)?></div>
   		  <div class="clear"></div>
          <div class="vietnam_content_right chitiet_categore_bg" align="center"> 
          <div class="topArticle" >


            <ul class="bd" >
            <?
            	$i = 0;
            	$placeId = $this->viewParams['placeId'];
            	foreach ($this->viewParams['images'] as $k => $imageItem) :?>
            <? 
            	if ($i > 4)
            		break;
            	$link = $this->hvnUrl(array("module" => "place", "action" => "view"), "nocontroller") . "?id=" . $placeId;
            	$image = str_replace("/original/", "/medium/", $imageItem['filename']);
            	$thumb = str_replace("/original/", "/xsmall/", $imageItem['filename']);
            	$title = $imageItem['title'];
            	$desc = "";
            ?>
            <?if ($k == 0) :?> 
        	<li id="place_<?=$k?>" class="tabcontent" style="display: block;">
        	<?else :?>
        	<li id="place_<?=$k?>" class="tabcontent" style="display: none;" >
        	<?endif?>
        	<a href="<?=$link?>">
        	<img src="<?=$image ?>" align="left" border="0" vspace="0" width="420" hspace="0">
        	</a>
        	<a href="<?=$link?>" class="des">
        	<p class="tit"><?=$title ?></p>
            <p><?=$desc?></p></a><a class="mask"></a>
            </li>
			<?endforeach ?>
            </ul>

    		<div style="clear:both"></div> 
            
            <ul class="hd" id="article_Nav">
            <?
            	$i = 0;
            	foreach ($this->viewParams['images'] as $k => $imageItem) :?>
            <? 
            	if ($i > 4)
            		break;
            	$link = $this->hvnUrl(array("module" => "place", "action" => "view"), "nocontroller") . "?id=" . $placeId;
            	$image = str_replace("/original/", "/medium/", $imageItem['filename']);
            	$thumb = str_replace("/original/", "/xsmall/", $imageItem['filename']);
            	$title = $imageItem['title'];
            	$desc = "";
            ?>
        	<?if ($k == 0) :?> 
            <li><a class="current" href="<?=$link?>" rel="place_<?=$k?>">
            <?else :?> 
            <li><a class="" href="<?=$link ?>" rel="place_<?=$k?>">
			<?endif?>
            <img src="<?=$thumb?>" align="left" border="0" vspace="5" width="50" height="50" hspace="5">
            </a></li>
            <?endforeach ?>
            </ul> 
    </div>
<?else :?>
<?=t(5004)?>. <?=t(5005)?> <a href="#"> <?=t(95)?> </a>   
<?endif ?>

</div>
</div>